<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Model
 *
 * @author Maciej
 */
class Model {
    
    public static function getSql($sql){
        return Yii::app()->db->createCommand($sql)->execute();
    }
    
    public static function setSql($sql){
        return Yii::app()->db->createCommand($sql)->query();
    }
}
